<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Traits\TransFormer;
use App\Services\EventService;

class EventController extends Controller
{
    use TransFormer;

    protected $service;
    public function __construct(EventService $service)
    {
        $this->service = $service;
    }

    /**
     * 获取 事件类型 测试
     * @return array
     * @throws \Exception
     */
    public function getEventData()
    {
        $res = $this->service->getEventData();
        return $this->transFormer(200,'获取成功',$res);
    }

}
